const test1 = "222A"
const test2 = false
console.log(test1)
console.log(test1.toLowerCase())
console.log(test2)
let test3 = new String('hekel')
console.log(test3)
console.log(test3.toLowerCase())
console.log("-----------------------------")
console.log(typeof test1) // string
console.log(typeof test3) // object
console.log("-----------------------------")
console.log(test1[0])
let test4 = new Number(1234)  // 这是包装类型 与java 一样自动拆箱，自动包箱
console.log(test4.valueOf())
console.log(test4 + 1)

// 对于普通的函数
function f() {

}

let test5 = f()
console.log("默认情况下函数的返回值 " + test5)
let qq

function test6() {

    qq = "sdsaf"
    return qq
}

class MyClass {
    static staticProperty = '静态属性';
    static count = 0;

    constructor() {
        MyClass.count++; // 在构造函数中访问静态属性
    }

    static getCount() {
        return MyClass.count;
    }
}

console.log(MyClass.staticProperty); // "静态属性"
console.log(MyClass.getCount()); // 0

const obj1 = new MyClass();
const obj2 = new MyClass();
console.log(MyClass.getCount()); // 2

